package com.wtwd.wtwddevice.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.wtwd.device.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "健康警报对象",description = "")
public class AlarmHealth extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "健康预警id")
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "设备id")
    private Long deviceId;

    @ApiModelProperty(value = "类型 1-心率异常 2-血氧异常 3-血压异常")
    private Byte type;

    @ApiModelProperty(value = "心率异常数据")
    private String hrData;

    @ApiModelProperty(value = "血氧异常数据")
    private String oxData;

    @ApiModelProperty(value = "血压舒张压")
    private String diastolicPressure;

    @ApiModelProperty(value = "血压收缩压")
    private String systolicPressure;

    @ApiModelProperty(value = "流水号")
    private String number;

    @ApiModelProperty(value = "设备时间")
    private String time;

    public AlarmHealth() {
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public String getHrData() {
        return hrData;
    }

    public void setHrData(String hrData) {
        this.hrData = hrData;
    }

    public String getOxData() {
        return oxData;
    }

    public void setOxData(String oxData) {
        this.oxData = oxData;
    }

    public String getDiastolicPressure() {
        return diastolicPressure;
    }

    public void setDiastolicPressure(String diastolicPressure) {
        this.diastolicPressure = diastolicPressure;
    }

    public String getSystolicPressure() {
        return systolicPressure;
    }

    public void setSystolicPressure(String systolicPressure) {
        this.systolicPressure = systolicPressure;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }


    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "AlarmHealth{" +
                "id=" + id +
                ", deviceId=" + deviceId +
                ", type=" + type +
                ", hrData='" + hrData + '\'' +
                ", oxData='" + oxData + '\'' +
                ", diastolicPressure='" + diastolicPressure + '\'' +
                ", systolicPressure='" + systolicPressure + '\'' +
                ", number='" + number + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}
